package com.local.designpatterns.singletoninstance;

/**
 * 这是系统给我们创建默认的单例模式
 * Created by Administrator on 2017-03-30.
 */
public class SingletonDemo {
    private static SingletonDemo ourInstance = new SingletonDemo();

    public static SingletonDemo getInstance() {
        return ourInstance;
    }

    private SingletonDemo() {
    }
}
